package com.campus.counseling.model.vo;

import com.campus.counseling.entity.Appointment;
import lombok.Data;
import java.time.LocalDateTime;
import org.springframework.beans.BeanUtils;

@Data
public class AppointmentVO {
    private Long id;
    private Long studentId;
    private String studentName;
    private Long counselorId;
    private String counselorName;
    private String appointmentTime;
    private String type;
    private String status;
    private String description;
    private String cancelReason;
    private String createTime;
    private String updateTime;

    public static AppointmentVO from(Appointment appointment) {
        AppointmentVO vo = new AppointmentVO();
        BeanUtils.copyProperties(appointment, vo);
        return vo;
    }
} 